#include <stdio.h>
int main()
{
#define LSIZE 81
    char message[LSIZE]; /*enough storage for 80 characters plus '\0'*/
    char c;
    int i;

    printf("Enter a string: \n");
    i = 0;
    while (i < (LSIZE - 1) && (c = getchar()) != '\n')
    {
        message[i] = c; /*store the character entered*/
        i++;
    }
    message[i] = '\0'; /*terminate the string*/
    printf("The string just entered is: \n");
    puts(message);
    return 0;
}